﻿using System;
using System.Collections.Generic;

using ARCHFORME.Common;

using Sample.Core.Dto;
using Sample.Core.Persistance;

namespace Sample.Core.Query
{
    internal class ActiveOrdersQueryHandler : IHandleQueries<ActiveOrdersQuery, IEnumerable<OrderDto>>
    {
        //public ActiveOrdersQueryHandler(Func<SampleUnitOfWorkFactory> uowFactory)
        //{
            
        //}

        public IEnumerable<OrderDto> Handle(ActiveOrdersQuery query)
        {
            return new List<OrderDto>
            {
                new OrderDto
                {
                    Id = 1,
                    Name = "test"
                },
                new OrderDto
                {
                    Id = 2,
                    Name = "test 2"
                }
            };
        }
    }
}